import { BASE_PRE } from "../utils/base.js";

const importModule = {};

// 下载
importModule.download = {
  url: BASE_PRE + "base/download/template",
  method: "post",
  responseType: "blob",
};

// 导入
importModule.import = {
  url: BASE_PRE + "base/upload/import",
  method: "post",
  noLoading: true,
  rejectOnError: true,
  headers: { "Content-Type": "multipart/form-data" },
};

export default importModule;
